#coding=utf-8
from PublicTool.ClientHelper import get_client_ip

__author__ = 'czq'
import models
def SystemLog_Add(request,moduleName,typeName=2,remark=None,outId=None):
    log=models.SystemLog(addUser=request.user,moduleName=moduleName,typeName=typeName,remark=remark,outId=outId,ip=get_client_ip(request))
    log.save()